package com.michael.demos.base.java.verify;

import java.util.concurrent.ForkJoinPool;

/**
 * 类功能描述:
 * <pre>
 *   xxxx
 * </pre>
 *
 * @author Michael
 * @version 1.0
 * @date 2021/03/04 08:21
 */
public class CPU预测 {

    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        for (int i = 0; i < 10000; i++) {
            for (int j = 0; j < 100000; j++) {
                for (int k = 0; k < 1000000; k++) {

                }
            }
        }
        long end = System.currentTimeMillis();
        System.out.println("运行耗时" + (end - start) + "ms");

        start = System.currentTimeMillis();
        for (int i = 0; i < 1000000; i++) {
            for (int j = 0; j < 100000; j++) {
                for (int k = 0; k < 10000; k++) {

                }
            }
        }
        end = System.currentTimeMillis();
        System.out.println("运行耗时" + (end - start) + "ms");
    }
}
